﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;
using System.Collections;

namespace BUS
{
    public class ChiTietHoaDonBUS
    {
        public static int ThemChiTietHoaDon(ChiTietHoaDonDTO dv)
        {
            return ChiTietHoaDonDAO.ThemChiTietHoaDon(dv);
        }

        public static ChiTietHoaDonDTO LayThongTinCTHoaDon(String ma)
        {
            return ChiTietHoaDonDAO.LayThongTinCTHoaDon(ma);
        }

        public static int CapNhat(ChiTietHoaDonDTO cthd)
        {
            return ChiTietHoaDonDAO.CapNhat(cthd);
        }

        public static int Xoa(String ma)
        {
            return ChiTietHoaDonDAO.Xoa(ma);
        }

        public static ArrayList LayDanhSachTheoHoaDon(String mahd)
        {
            return ChiTietHoaDonDAO.LayDanhSachTheoHoaDon(mahd);
        }
    }
}
